#include <stdio.h>
typedef unsigned long long ll;
void shell_sort(ll a[], ll n)
{
    int i, j, key, inc;
    for (inc = n / 2; inc > 0; inc /= 2)
    {
        for (i = inc; i < n; i++)
        {
            key = a[i];
            for (j = i; j >= 0 && a[j - inc] > key; j -= inc)
            {
                a[j] = a[j - inc];
            }
            a[j] = key;
        }
    }
}
ll LCM(ll m, ll n)
{
    ll i=m, j=n;
    /*for (i = 1;; i++)
    {
        if (n * i % m == 0)
        {
            return i * n;
            break;
        }
    }*/

    while(i!=0)
    {
        ll tmp=j%i;
        j=i;
        i=tmp;
    }
    ll x=m/j*n;
    return x;
}
int main()
{
    ll a[1500], n, i, j;
    while(~scanf("%llu", &n))
    {
    for (i = 0; i < n; i++)
        scanf("%llu", &a[i]);
    shell_sort(a, n);
    ll x = LCM(a[0], a[1]);
    for (i = 2; i < n; i++)
    {
        x = LCM(x, a[i]);
    }
    printf("%llu\n", x);
    }
    return 0;
}
